<template>
	<view class="contact">
		<image src="http://www.itcast.cn/2018czydz/images/gywmban.jpg" mode=""></image>
		<view class="info">
			<view class="num" @click="handleCall">联系电话：400-618-9090 ( 点击拨打 )</view>
			<view class="address">校区地址：浙江省杭州市下沙经济开发区4号大街187号盛泰时代山</view>
			<view class="page-body">
				<view class="page-section page-section-gap">
					<map :latitude="latitude" :longitude="longitude" :markers="covers"></map>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:0,
				title:'map',
				latitude:30.563,
				longitude:104.099679,
				covers:[
					{
						latitude:30.563,
						longitude:104.099679,
						iconPath:'../../static/logo.png',
						width:30,
						height:30
					}
				]
			}
		},
		methods: {
			handleCall(){
				uni.makePhoneCall({
					phoneNumber:"15213030585"
				})
			}
		}
	}
</script>

<style lang="scss">
	.contact{
		image{
			width: 750rpx;
			height: 320rpx;
		}
		.info{
			font-size: 15px;
			.num{
				margin: 0 10px;
				line-height: 40px;
				border-bottom: 1px solid #ccc;
			}
			.address{
				margin: 0 10px;
				line-height: 40px;
				border-bottom: 1px solid #ccc;
			}
			.page-body{
				padding-top: 5px;
				map{
					width: 100%;
					height: 600rpx;
				}
			}
		}
	}
</style>
